<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/cfb/cfb.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('cfb_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">cfb.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="cfb_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacecfb.html">cfb</a> {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html">   30</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcfb_1_1_cfb.html">Cfb</a> {</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="classcfb_1_1_cfb.html#a995d87049bcdae539a8e13d7b033b644">Cfb</a>(<span class="keyword">const</span> std::string&amp; fileName);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    T <a class="code" href="classcfb_1_1_cfb.html#ad8e9e62e981006297eda23af54bb6a22">readByte</a>(<span class="keyword">const</span> std::string&amp; data, <span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> size) <span class="keyword">const</span>;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#a67c83d1f0dd76bdb57fb36bb0338962b">parse</a>();</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    std::string <a class="code" href="classcfb_1_1_cfb.html#a78501e0a3a36f4df42e9eba954560d98">getStream</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span> offset = 0, <span class="keywordtype">bool</span> isRoot = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#ad6c25c47539e67d163295d43e7b6f889">clear</a>();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classcfb_1_1_cfb.html#aaf6767ebf961725620d890b0daa04e0a">decodeUTF16</a>(<span class="keyword">const</span> std::string&amp; data);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a3dffaf51ea583b8203eb133c92a45821">   98</a></span>&#160;    <span class="keyword">const</span> std::string <a class="code" href="classcfb_1_1_cfb.html#a3dffaf51ea583b8203eb133c92a45821">m_fileName</a>;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classcfb_1_1_cfb.html#a875fd532a5e29d08fc005d1acab08c64">binToHex</a>(<span class="keyword">const</span> std::string&amp; input);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    std::string <a class="code" href="classcfb_1_1_cfb.html#a1d679e2d4a53933eaf160c64c8f5421e">unicodeToUtf8</a>(std::string input, <span class="keywordtype">bool</span> check = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a6dc874a9c0a8da935c3dca49f103bc8c">  126</a></span>&#160;    std::string <a class="code" href="classcfb_1_1_cfb.html#a6dc874a9c0a8da935c3dca49f103bc8c">m_data</a>;</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a020ef0f689b7b92fa61369de73edff2c">  128</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classcfb_1_1_cfb.html#a020ef0f689b7b92fa61369de73edff2c">m_sectorShift</a> = 9;</div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a64526952e10362dab24506d91e3ee3be">  130</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classcfb_1_1_cfb.html#a64526952e10362dab24506d91e3ee3be">m_miniSectorShift</a> = 6;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a073f6a3ee5fa450636f690f60ac4b6b0">  132</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classcfb_1_1_cfb.html#a073f6a3ee5fa450636f690f60ac4b6b0">m_miniSectorCutoff</a> = 4096;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#aa7e785d02e4b2eb069667df58bc42fe7">  134</a></span>&#160;    std::vector&lt;int&gt; <a class="code" href="classcfb_1_1_cfb.html#aa7e785d02e4b2eb069667df58bc42fe7">m_fatChains</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a6bc9f15422621999e06579324089bbf5">  136</a></span>&#160;    std::vector&lt;std::pair&lt;std::string, std::map&lt;std::string, int&gt;&gt;&gt; <a class="code" href="classcfb_1_1_cfb.html#a6bc9f15422621999e06579324089bbf5">m_fatEntries</a>;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a9dbf6fb62b192d9ed7c260268da0b5ca">  138</a></span>&#160;    std::vector&lt;int&gt; <a class="code" href="classcfb_1_1_cfb.html#a9dbf6fb62b192d9ed7c260268da0b5ca">m_miniFatChains</a>;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a161131af85de5be1ca4554cd54e4bdc5">  140</a></span>&#160;    std::string <a class="code" href="classcfb_1_1_cfb.html#a161131af85de5be1ca4554cd54e4bdc5">m_miniFat</a>;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#a8a1238ee48068c598450089838373d0f">handleHeader</a>();</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#af06e4b360fc1a0b42ffadc8091ed227b">handleDifat</a>();</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#ab59cc473af580d8154830cc6e95c6abe">handleFatChains</a>();</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#a93aee5e68415599ad67584a54a3f0df9">handleMiniFatChains</a>();</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcfb_1_1_cfb.html#a9b290040021ddd66072d9a33fdd94075">handleDirectoryStructure</a>();</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    std::string <a class="code" href="classcfb_1_1_cfb.html#af7e9378d470c1f3fb29882783b1c5a65">utf16ToAnsi</a>(<span class="keyword">const</span> std::string&amp; input) <span class="keyword">const</span>;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classcfb_1_1_cfb.html#a6a64174b59482168e4c615d332afd231">hexVal</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c) <span class="keyword">const</span>;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a85c1f53916480b5fc6c2902d1de85a50">  199</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classcfb_1_1_cfb.html#a85c1f53916480b5fc6c2902d1de85a50">m_version</a> = 3;</div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#aa425a3a5b763a4a87a230d2d92a4e1f6">  201</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classcfb_1_1_cfb.html#aa425a3a5b763a4a87a230d2d92a4e1f6">m_isLittleEndian</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a7d628c574fd2171a37cef0ba74a4778d">  203</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#a7d628c574fd2171a37cef0ba74a4778d">m_cDir</a> = 0;</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a6102d3f828cfc1e90acebae155ac111b">  205</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#a6102d3f828cfc1e90acebae155ac111b">m_fDir</a> = 0;</div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#af8eca0e7ec8c75f2072046f6eb1d71c3">  207</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#af8eca0e7ec8c75f2072046f6eb1d71c3">m_cFAT</a> = 0;</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#aaf455026cda5711d303ded9318277bce">  209</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#aaf455026cda5711d303ded9318277bce">m_cMiniFat</a> = 0;</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#ad154fda89303f4526c6335549ac00c64">  211</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#ad154fda89303f4526c6335549ac00c64">m_fMiniFat</a> = 0;</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#a1192e132f5264e8ae5ab991ad657ebce">  213</a></span>&#160;    std::vector&lt;int&gt; <a class="code" href="classcfb_1_1_cfb.html#a1192e132f5264e8ae5ab991ad657ebce">m_Difat</a>;</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#ab8cc9a26b25ba148687310ad72102a35">  215</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#ab8cc9a26b25ba148687310ad72102a35">m_cDifat</a> = 0;</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#ad22f2d2d71b07134a2f3fd8d9351a7de">  217</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcfb_1_1_cfb.html#ad22f2d2d71b07134a2f3fd8d9351a7de">m_fDifat</a> = 0;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;};</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classcfb_1_1_cfb.html#ad8e9e62e981006297eda23af54bb6a22">  222</a></span>&#160;T <a class="code" href="classcfb_1_1_cfb.html#ad8e9e62e981006297eda23af54bb6a22">Cfb::readByte</a>(<span class="keyword">const</span> std::string&amp; data, <span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> size)<span class="keyword"> const </span>{</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    std::string str = data.substr(offset, size);</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classcfb_1_1_cfb.html#aa425a3a5b763a4a87a230d2d92a4e1f6">m_isLittleEndian</a>)</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        std::reverse(str.begin(), str.end());</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keyword">union </span>{</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> i;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        T t;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    } value;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    value.i = std::stoull(<a class="code" href="classcfb_1_1_cfb.html#a875fd532a5e29d08fc005d1acab08c64">binToHex</a>(str), <span class="keyword">nullptr</span>, 16);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keywordflow">return</span> value.t;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="comment">/*unsigned long long i;</span></div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="comment">    std::stringstream ss;</span></div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="comment">    ss &lt;&lt; std::hex &lt;&lt; str;</span></div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="comment">    ss &gt;&gt; i;</span></div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="comment">    T t(reinterpret_cast&lt;T&amp;&gt;(i));</span></div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="comment">    return t;*/</span></div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;}</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="keyword">template</span>&lt;&gt;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="keyword">inline</span> std::string Cfb::readByte&lt;std::string&gt;(<span class="keyword">const</span> std::string&amp; data, <span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> size) <span class="keyword">const</span> {</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordflow">return</span> data.substr(offset, size);</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="comment">/*std::string str = binToHex(data.substr(offset, size));</span></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="comment">    std::string out;</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="comment">    out.reserve(str.length() / 2);</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="comment">    for (auto p = str.begin(); p != str.end(); p++) {</span></div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="comment">        unsigned char c = hexVal(*p);</span></div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">        p++;</span></div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="comment">        if (p == str.end()) break; // incomplete last digit - should report error</span></div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="comment">        c = (c &lt;&lt; 4) + hexVal(*p); // + takes precedence over &lt;&lt;</span></div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="comment">        out.push_back(c);</span></div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="comment">    }</span></div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="comment">    return out;*/</span></div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;}</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classcfb_1_1_cfb_html_a1d679e2d4a53933eaf160c64c8f5421e"><div class="ttname"><a href="classcfb_1_1_cfb.html#a1d679e2d4a53933eaf160c64c8f5421e">cfb::Cfb::unicodeToUtf8</a></div><div class="ttdeci">std::string unicodeToUtf8(std::string input, bool check=false) const</div><div class="ttdoc">Convert unicode to UTF-8. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:160</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_aa425a3a5b763a4a87a230d2d92a4e1f6"><div class="ttname"><a href="classcfb_1_1_cfb.html#aa425a3a5b763a4a87a230d2d92a4e1f6">cfb::Cfb::m_isLittleEndian</a></div><div class="ttdeci">bool m_isLittleEndian</div><div class="ttdef"><b>Definition:</b> cfb.hpp:201</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a78501e0a3a36f4df42e9eba954560d98"><div class="ttname"><a href="classcfb_1_1_cfb.html#a78501e0a3a36f4df42e9eba954560d98">cfb::Cfb::getStream</a></div><div class="ttdeci">std::string getStream(const std::string &amp;name, int offset=0, bool isRoot=false) const</div><div class="ttdoc">Get binary stream content by name in &quot;directory&quot; structure. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:61</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_af8eca0e7ec8c75f2072046f6eb1d71c3"><div class="ttname"><a href="classcfb_1_1_cfb.html#af8eca0e7ec8c75f2072046f6eb1d71c3">cfb::Cfb::m_cFAT</a></div><div class="ttdeci">int m_cFAT</div><div class="ttdef"><b>Definition:</b> cfb.hpp:207</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a85c1f53916480b5fc6c2902d1de85a50"><div class="ttname"><a href="classcfb_1_1_cfb.html#a85c1f53916480b5fc6c2902d1de85a50">cfb::Cfb::m_version</a></div><div class="ttdeci">unsigned short m_version</div><div class="ttdef"><b>Definition:</b> cfb.hpp:199</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_ad22f2d2d71b07134a2f3fd8d9351a7de"><div class="ttname"><a href="classcfb_1_1_cfb.html#ad22f2d2d71b07134a2f3fd8d9351a7de">cfb::Cfb::m_fDifat</a></div><div class="ttdeci">int m_fDifat</div><div class="ttdef"><b>Definition:</b> cfb.hpp:217</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a875fd532a5e29d08fc005d1acab08c64"><div class="ttname"><a href="classcfb_1_1_cfb.html#a875fd532a5e29d08fc005d1acab08c64">cfb::Cfb::binToHex</a></div><div class="ttdeci">static std::string binToHex(const std::string &amp;input)</div><div class="ttdoc">Convert binary data to hex. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:150</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_ad8e9e62e981006297eda23af54bb6a22"><div class="ttname"><a href="classcfb_1_1_cfb.html#ad8e9e62e981006297eda23af54bb6a22">cfb::Cfb::readByte</a></div><div class="ttdeci">T readByte(const std::string &amp;data, int offset, int size) const</div><div class="ttdoc">Read binary data. </div><div class="ttdef"><b>Definition:</b> cfb.hpp:222</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_aaf6767ebf961725620d890b0daa04e0a"><div class="ttname"><a href="classcfb_1_1_cfb.html#aaf6767ebf961725620d890b0daa04e0a">cfb::Cfb::decodeUTF16</a></div><div class="ttdeci">static std::string decodeUTF16(const std::string &amp;data)</div><div class="ttdoc">Decode UTF-16 text. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:114</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a161131af85de5be1ca4554cd54e4bdc5"><div class="ttname"><a href="classcfb_1_1_cfb.html#a161131af85de5be1ca4554cd54e4bdc5">cfb::Cfb::m_miniFat</a></div><div class="ttdeci">std::string m_miniFat</div><div class="ttdef"><b>Definition:</b> cfb.hpp:140</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a1192e132f5264e8ae5ab991ad657ebce"><div class="ttname"><a href="classcfb_1_1_cfb.html#a1192e132f5264e8ae5ab991ad657ebce">cfb::Cfb::m_Difat</a></div><div class="ttdeci">std::vector&lt; int &gt; m_Difat</div><div class="ttdef"><b>Definition:</b> cfb.hpp:213</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a67c83d1f0dd76bdb57fb36bb0338962b"><div class="ttname"><a href="classcfb_1_1_cfb.html#a67c83d1f0dd76bdb57fb36bb0338962b">cfb::Cfb::parse</a></div><div class="ttdeci">void parse()</div><div class="ttdoc">Parse file-system-like structure within a file. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:36</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_ab59cc473af580d8154830cc6e95c6abe"><div class="ttname"><a href="classcfb_1_1_cfb.html#ab59cc473af580d8154830cc6e95c6abe">cfb::Cfb::handleFatChains</a></div><div class="ttdeci">void handleFatChains()</div><div class="ttdoc">Transform links to the FAT-sectors into real chains. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:278</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a9dbf6fb62b192d9ed7c260268da0b5ca"><div class="ttname"><a href="classcfb_1_1_cfb.html#a9dbf6fb62b192d9ed7c260268da0b5ca">cfb::Cfb::m_miniFatChains</a></div><div class="ttdeci">std::vector&lt; int &gt; m_miniFatChains</div><div class="ttdef"><b>Definition:</b> cfb.hpp:138</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_af7e9378d470c1f3fb29882783b1c5a65"><div class="ttname"><a href="classcfb_1_1_cfb.html#af7e9378d470c1f3fb29882783b1c5a65">cfb::Cfb::utf16ToAnsi</a></div><div class="ttdeci">std::string utf16ToAnsi(const std::string &amp;input) const</div><div class="ttdoc">Convert UTF-16 text to ANSI. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:335</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a7d628c574fd2171a37cef0ba74a4778d"><div class="ttname"><a href="classcfb_1_1_cfb.html#a7d628c574fd2171a37cef0ba74a4778d">cfb::Cfb::m_cDir</a></div><div class="ttdeci">int m_cDir</div><div class="ttdef"><b>Definition:</b> cfb.hpp:203</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_ad6c25c47539e67d163295d43e7b6f889"><div class="ttname"><a href="classcfb_1_1_cfb.html#ad6c25c47539e67d163295d43e7b6f889">cfb::Cfb::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Clear all data and release resources. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:98</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a6102d3f828cfc1e90acebae155ac111b"><div class="ttname"><a href="classcfb_1_1_cfb.html#a6102d3f828cfc1e90acebae155ac111b">cfb::Cfb::m_fDir</a></div><div class="ttdeci">int m_fDir</div><div class="ttdef"><b>Definition:</b> cfb.hpp:205</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_aa7e785d02e4b2eb069667df58bc42fe7"><div class="ttname"><a href="classcfb_1_1_cfb.html#aa7e785d02e4b2eb069667df58bc42fe7">cfb::Cfb::m_fatChains</a></div><div class="ttdeci">std::vector&lt; int &gt; m_fatChains</div><div class="ttdef"><b>Definition:</b> cfb.hpp:134</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_ad154fda89303f4526c6335549ac00c64"><div class="ttname"><a href="classcfb_1_1_cfb.html#ad154fda89303f4526c6335549ac00c64">cfb::Cfb::m_fMiniFat</a></div><div class="ttdeci">int m_fMiniFat</div><div class="ttdef"><b>Definition:</b> cfb.hpp:211</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a9b290040021ddd66072d9a33fdd94075"><div class="ttname"><a href="classcfb_1_1_cfb.html#a9b290040021ddd66072d9a33fdd94075">cfb::Cfb::handleDirectoryStructure</a></div><div class="ttdeci">void handleDirectoryStructure()</div><div class="ttdoc">Read structure of &quot;files&quot; in current file (all objects of &quot;file system&quot;) </div><div class="ttdef"><b>Definition:</b> cfb.cpp:303</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a6bc9f15422621999e06579324089bbf5"><div class="ttname"><a href="classcfb_1_1_cfb.html#a6bc9f15422621999e06579324089bbf5">cfb::Cfb::m_fatEntries</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; std::string, std::map&lt; std::string, int &gt; &gt; &gt; m_fatEntries</div><div class="ttdef"><b>Definition:</b> cfb.hpp:136</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a020ef0f689b7b92fa61369de73edff2c"><div class="ttname"><a href="classcfb_1_1_cfb.html#a020ef0f689b7b92fa61369de73edff2c">cfb::Cfb::m_sectorShift</a></div><div class="ttdeci">unsigned short m_sectorShift</div><div class="ttdef"><b>Definition:</b> cfb.hpp:128</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a995d87049bcdae539a8e13d7b033b644"><div class="ttname"><a href="classcfb_1_1_cfb.html#a995d87049bcdae539a8e13d7b033b644">cfb::Cfb::Cfb</a></div><div class="ttdeci">Cfb(const std::string &amp;fileName)</div><div class="ttdef"><b>Definition:</b> cfb.cpp:33</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a6dc874a9c0a8da935c3dca49f103bc8c"><div class="ttname"><a href="classcfb_1_1_cfb.html#a6dc874a9c0a8da935c3dca49f103bc8c">cfb::Cfb::m_data</a></div><div class="ttdeci">std::string m_data</div><div class="ttdef"><b>Definition:</b> cfb.hpp:126</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a3dffaf51ea583b8203eb133c92a45821"><div class="ttname"><a href="classcfb_1_1_cfb.html#a3dffaf51ea583b8203eb133c92a45821">cfb::Cfb::m_fileName</a></div><div class="ttdeci">const std::string m_fileName</div><div class="ttdef"><b>Definition:</b> cfb.hpp:98</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_aaf455026cda5711d303ded9318277bce"><div class="ttname"><a href="classcfb_1_1_cfb.html#aaf455026cda5711d303ded9318277bce">cfb::Cfb::m_cMiniFat</a></div><div class="ttdeci">int m_cMiniFat</div><div class="ttdef"><b>Definition:</b> cfb.hpp:209</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_af06e4b360fc1a0b42ffadc8091ed227b"><div class="ttname"><a href="classcfb_1_1_cfb.html#af06e4b360fc1a0b42ffadc8091ed227b">cfb::Cfb::handleDifat</a></div><div class="ttdeci">void handleDifat()</div><div class="ttdoc">Read DIFAT data (shows sectors with FAT chains description) </div><div class="ttdef"><b>Definition:</b> cfb.cpp:254</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a93aee5e68415599ad67584a54a3f0df9"><div class="ttname"><a href="classcfb_1_1_cfb.html#a93aee5e68415599ad67584a54a3f0df9">cfb::Cfb::handleMiniFatChains</a></div><div class="ttdeci">void handleMiniFatChains()</div><div class="ttdoc">Read MiniFAT-chains (same as FAT-chains) </div><div class="ttdef"><b>Definition:</b> cfb.cpp:288</div></div>
<div class="ttc" id="namespacecfb_html"><div class="ttname"><a href="namespacecfb.html">cfb</a></div><div class="ttdoc">Wrapper for Compound File Binary Format (CFB) </div></div>
<div class="ttc" id="classcfb_1_1_cfb_html"><div class="ttname"><a href="classcfb_1_1_cfb.html">cfb::Cfb</a></div><div class="ttdoc">Wrapper for Compound File Binary Format (CFB) </div><div class="ttdef"><b>Definition:</b> cfb.hpp:30</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_ab8cc9a26b25ba148687310ad72102a35"><div class="ttname"><a href="classcfb_1_1_cfb.html#ab8cc9a26b25ba148687310ad72102a35">cfb::Cfb::m_cDifat</a></div><div class="ttdeci">int m_cDifat</div><div class="ttdef"><b>Definition:</b> cfb.hpp:215</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a6a64174b59482168e4c615d332afd231"><div class="ttname"><a href="classcfb_1_1_cfb.html#a6a64174b59482168e4c615d332afd231">cfb::Cfb::hexVal</a></div><div class="ttdeci">unsigned char hexVal(unsigned char c) const</div><div class="ttdoc">Update ASCII char code. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:343</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a8a1238ee48068c598450089838373d0f"><div class="ttname"><a href="classcfb_1_1_cfb.html#a8a1238ee48068c598450089838373d0f">cfb::Cfb::handleHeader</a></div><div class="ttdeci">void handleHeader()</div><div class="ttdoc">Read data from file header. </div><div class="ttdef"><b>Definition:</b> cfb.cpp:238</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a073f6a3ee5fa450636f690f60ac4b6b0"><div class="ttname"><a href="classcfb_1_1_cfb.html#a073f6a3ee5fa450636f690f60ac4b6b0">cfb::Cfb::m_miniSectorCutoff</a></div><div class="ttdeci">unsigned short m_miniSectorCutoff</div><div class="ttdef"><b>Definition:</b> cfb.hpp:132</div></div>
<div class="ttc" id="classcfb_1_1_cfb_html_a64526952e10362dab24506d91e3ee3be"><div class="ttname"><a href="classcfb_1_1_cfb.html#a64526952e10362dab24506d91e3ee3be">cfb::Cfb::m_miniSectorShift</a></div><div class="ttdeci">unsigned short m_miniSectorShift</div><div class="ttdef"><b>Definition:</b> cfb.hpp:130</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="dir_59e0b25cf07e01990247cc26cbdcf1e2.html">cfb</a></li><li class="navelem"><a class="el" href="cfb_8hpp.html">cfb.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
